[20260203] BOJ / G5 / 수열과 현팅 / 이인희 #1878
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🧷 문제 링크
https://www.acmicpc.net/problem/20495
🧭 풀이 시간
65 분
👀 체감 난이도
✏️ 문제 설명
수열이 주어지는데, 각 원소마다 +-값이 적혀있어서 원소에 마이너스한값과 플러스한값의 사이 중 한가지가 랜덤으로 원소로 정해지는 수열이 있다. 각각의 원소마다 있을수있는 인덱스 범위를 출력
🔍 풀이 방법
최댓값 수열과, 최솟값수열을 각각구하고 정렬하고 어퍼바운드 로워바운드를 구함
⏳ 회고
이진탐색 연습하는데 다소 생소한 문제여서 생각에서 많이 걸림